﻿using Abp.Application.Services.Dto;

namespace Basefr.App.Dtos
{

    public abstract class DtoBase : DtoBase<int>, IEntityDto
    {
        
    }

    public abstract class DtoBase<TKey> : AuditedEntityDto<TKey>
    {
        public string CreationTimeStr => CreationTime.ToString("yyyy-MM-dd HH:mm");
        public string CreationDateStr => CreationTime.ToString("yyyy-MM-dd");
        public string LastModificationTimeStr => CreationTime.ToString("yyyy-MM-dd HH:mm");

        //public string CreatorUserName { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public int? SortNum { get; set; }
    }
}
